<template>
	<view class="content">
		<!-- 搜索框 -->
		<!-- <view class="header1">
			<view class="ipt-box">
				<input @input="searChange" v-model="searchIpt" type="text" value="" placeholder="请输入档案号"
					placeholder-class="plac-class" />
				<image src="/static/search1.png" mode="" @click="searNum"></image>
			</view>
			<view class="header1-right" @click="clousText">
				<view class="">取消</view>
			</view>
		</view> -->
		<!-- 气表更换 -->
		<view>
			<view class="ipts" v-if="read_only">
				<view class="record">
					<view class="">
						<image src="/static/jilu.png" mode=""></image>
						<span>用户信息</span>
					</view>
				</view>
				<!-- 户号 -->
				<view class="info-item">
					<view class="info-item-left">
						<view class="dot"></view>
						<span>档案号</span>
					</view>
					<span class="place-class">{{list.user_text.meter_num}}</span>
				</view>

				<!-- 户主姓名 -->
				<view class="info-item">
					<view class="info-item-left">
						<view class="dot"></view>
						<span>户主姓名</span>
					</view>
					<span class="place-class">{{list.user_text.realname}}</span>
				</view>

				<!-- 身份证号 -->
				<view class="info-item">
					<view class="info-item-left">
						<view class="dot"></view>
						<span>身份证号</span>
					</view>
					<span class="place-class">{{list.user_text.ID_num}}</span>
				</view>

				<!-- 联系方式 -->
				<view class="info-item">
					<view class="info-item-left">
						<view class="dot"></view>
						<span>联系方式</span>
					</view>
					<view class="" style="display: flex;align-items: center;">
						<image src="/static/pagesB/tel.png" mode=""></image>
						<span class="place-class">{{list.user_text.mobile}}</span>
					</view>
				</view>

				<!-- 地址 -->
				<view class="info-item">
					<view class="info-item-left">
						<view class="dot"></view>
						<span>地址</span>
					</view>
					<span class="place-class">{{list.user_text_adress}}</span>
				</view>
			</view>
			<!-- <view class="info-item" v-else>
				<view class="info-item-left">
					<view class="dot"></view>
					<span>身份证号</span>
				</view>
				<input class="item-ipt" type="idcard" v-model="gasmeter.ID_num" placeholder="请输入身份证号" />
			</view> -->
			<view class="info-item" v-else>
				<view class="info-item-left">
					<view class="dot"></view>
					<span>输入档案号</span>
				</view>
				<input class="item-ipt" type="text" v-model="gasmeter.archives_num" placeholder="请输入档案号" />
			</view>
			<!-- 第二块 -->
			<view class="ipts">
				<!-- 气表更换原因 -->
				<view class="info-item">
					<view class="info-item-left">
						<view class="dot"></view>
						<span>气表更换原因</span>
					</view>
					<input class="item-ipt" @tap="openSelect('gasReasonlist','reason')" disabled type="text"
						v-model="gasmeter.renewal" placeholder="请选择气表更换原因" />
				</view>

				<!-- 原气表品牌 -->
				<view class="info-item">
					<view class="info-item-left">
						<view class="dot"></view>
						<span>原气表品牌</span>
					</view>
					<input @tap="openSelect('gasBrandlist','brand')" class="item-ipt" type="text" disabled
						v-model="gasmeter.brand_original_text" placeholder="请选择原气表品牌" />
				</view>

				<!-- 原气表号 -->
				<view class="info-item">
					<view class="info-item-left">
						<view class="dot"></view>
						<span>原气表号</span>
					</view>
					<input class="item-ipt" type="text" :disabled="read_only" v-model="gasmeter.gasometer_original"
						placeholder="请输入原气表号" />
				</view>

				<!-- 原气表读数 -->
				<view class="info-item">
					<view class="info-item-left">
						<view class="dot"></view>
						<span>原气表读数</span>
					</view>
					<input class="item-ipt" type="text" :disabled="read_only"
						v-model="gasmeter.gasometer_original_number" placeholder="请输入原气表读数" />
				</view>

				<!-- 原气表剩余气量/金额 -->
				<view class="info-item">
					<view class="info-item-left">
						<view class="dot"></view>
						<span>原气表剩余气量/金额</span>
					</view>
					<input class="item-ipt" type="text" :disabled="read_only"
						v-model="gasmeter.gasometer_original_price" placeholder="请输入原气表剩余气量/金额" />
				</view>

				<!-- 原气表进气方向 -->
				<view class="info-item">
					<view class="info-item-left">
						<view class="dot"></view>
						<span>原气表进气方向</span>
					</view>
					<input class="item-ipt" type="text" :disabled="read_only"
						v-model="gasmeter.gasometer_original_direction" placeholder="请输入原气表进气方向" />
				</view>

				<!-- 原气表照片 -->
				<view class="info-item">
					<view class="info-item-left">
						<view class="dot"></view>
						<span>原气表照片</span>
					</view>
					<view class="addform-items">
						<template v-for="i,index in gasmeter.gasometer_original_images">
							<view class="" style="position: relative;" :key="index">
								<image class="form-img" :src="i"
									@tap="seeimg(gasmeter.gasometer_original_images,index)"></image>
								<image v-if="!read_only" class="delet" src="/static/delet.png" mode=""
									@tap="deletImg('gasometer_original_images',index)"></image>
							</view>
						</template>
						<view class="add" v-if="!read_only" @tap="choosefrom('gasometer_original_images')">
							<!-- <image style="width: 60rpx;height: 60rpx;" :src="list.gasometer_original_images" mode=""></image> -->
							<u-icon name="camera" color="#999999" size="28"></u-icon>
						</view>
					</view>
					</image>
				</view>

			</view>
			<!-- 第三块 -->
			<view class="ipts">
				<!-- 现气表品牌 -->
				<view class="info-item">
					<view class="info-item-left">
						<view class="dot"></view>
						<span>现气表品牌</span>
					</view>
					<input class="item-ipt" @tap="openSelect('gasBrandlist','nowBrand')" disabled type="text"
						v-model="gasmeter.brand_new_text" placeholder="请选择现品牌" />
				</view>

				<!-- 现气表号 -->
				<view class="info-item">
					<view class="info-item-left">
						<view class="dot"></view>
						<span>现气表号</span>
					</view>
					<input class="item-ipt" :disabled="read_only" type="text" v-model="gasmeter.gasometer_new"
						placeholder="请输入现气表号" />
				</view>

				<!-- 现气表读数 -->
				<view class="info-item">
					<view class="info-item-left">
						<view class="dot"></view>
						<span>现气表读数</span>
					</view>
					<input class="item-ipt" :disabled="read_only" type="text" v-model="gasmeter.gasometer_new_number"
						placeholder="请输入现读数" />
				</view>

				<!-- 现气表剩余气量/金额 -->
				<view class="info-item">
					<view class="info-item-left">
						<view class="dot"></view>
						<span>现气表剩余气量/金额</span>
					</view>
					<input class="item-ipt" :disabled="read_only" type="text" v-model="gasmeter.gasometer_new_price"
						placeholder="请输入现气表剩余气量/金额" />
				</view>

				<!-- 现气表进气方向 -->
				<view class="info-item">
					<view class="info-item-left">
						<view class="dot"></view>
						<span>现气表进气方向</span>
					</view>
					<input class="item-ipt" :disabled="read_only" type="text" v-model="gasmeter.gasometer_new_direction"
						placeholder="请输入现气表进气方向" />
				</view>

				<!-- 现气表照片 -->
				<view class="info-item">
					<view class="info-item-left">
						<view class="dot"></view>
						<span>现气表照片</span>
					</view>
					<view class="addform-items">
						<template v-for="i,index in gasmeter.gasometer_new_images">
							<view class="" style="position: relative;">
								<image class="form-img" :src="i" @tap="seeimg(gasmeter.gasometer_new_images,index)">
								</image>
								<image class="delet" v-if="!read_only" src="/static/delet.png" mode=""
									@tap="deletImg('gasometer_new_images',index)"></image>
							</view>
						</template>

						<view class="add" v-if="!read_only" @tap="choosefrom('gasometer_new_images')">
							<u-icon name="camera" color="#999999" size="28"></u-icon>
						</view>
					</view>
				</view>

				<!-- 使用材料 -->
				<view class="info-item">
					<view class="info-item-left">
						<view class="dot"></view>
						<span>使用材料</span>
					</view>
					<input class="item-ipt" :disabled="read_only" type="text" v-model="gasmeter.stuff"
						placeholder="请输入使用的材料" />
				</view>

				<!-- 气密性试压是否合格 -->
				<view class="info-item">
					<view class="info-item-left">
						<view class="dot"></view>
						<span>气密性试压是否合格</span>
					</view>
					<view class="danger-img-box">
						<switch :checked="isNo" :disabled="read_only" @change="isChecked"
							style="transform:scale(0.7)" />
					</view>
					<!-- <view class="addform-items">
						<template v-for="i,index in gasmeter.gas_tightness_images">
							<view class="" style="position: relative;">
								<image class="form-img" :src="i" @tap="seeimg(gasmeter.gas_tightness_images,index)">
								</image>
								<image v-if="!read_only" class="delet" src="/static/delet.png" mode=""
									@tap="deletImg('gas_tightness_images',index)"></image>
							</view>
						</template>
						<view class="add" v-if="!read_only" @tap="choosefrom('gas_tightness_images')">
							<u-icon name="camera" color="#999999" size="28"></u-icon>
						</view>
					</view> -->
				</view>

				<!-- 上传照片 -->
				<view class="info-item">
					<view class="info-item-left">
						<view class="dot"></view>
						<span>上传照片</span>
					</view>
					<view class="addform-items">
						<template v-for="i,index in gasmeter.up_images">
							<view class="" style="position: relative;">
								<image class="form-img" :src="i" @tap="seeimg(gasmeter.up_images,index)">
								</image>
								<image v-if="!read_only" class="delet" src="/static/delet.png" mode=""
									@tap="deletImg('up_images',index)"></image>
							</view>
						</template>
						<view class="add" v-if="!read_only" @tap="choosefrom('up_images')">
							<u-icon name="camera" color="#999999" size="28"></u-icon>
						</view>
					</view>
				</view>
				<!-- 电子签名 -->
				<view class="info-item" v-if="!read_only">
					<view class="info-item-left">
						<view class="dot"></view>
						<span>电子签名</span>
					</view>
					<view class="addform-items">
						<view class="" style="position: relative;" v-if="signature">
							<image class="form-img" :src="signature.intact_url" @tap="toView(signature.intact_url)">
							</image>
							<image class="delet" src="/static/delet.png" mode="" @tap="del()"></image>
						</view>
						<view class="add" @tap="$navTo('/pagesB/rithcheck/sign')" v-if="signature==''">
							<u-icon name="plus" color="#999999" size="28"></u-icon>
						</view>
					</view>
				</view>
				<view class="info-item" v-if="read_only">
					<view class="info-item-left">
						<view class="dot"></view>
						<span>电子签名</span>
					</view>
					<view class="addform-items">
						<view class="" style="position: relative;">
							<image class="form-img" :src="gasmeter.sign" @tap="toView(gasmeter.sign)">
							</image>
						</view>
					</view>
				</view>
			</view>
		</view>
		<view class="btns" v-if="!read_only">
			
			<view class="btn1 consel" @click="goBack">取消</view>
			<view class="btn1 save" @click="userPost">保存</view>
		</view>
		<template>
			<u-select v-model="show" value-name='id' label-name="name" @confirm="confirm" :list="publicList"></u-select>
		</template>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				show: false,
				publicList: [], //公共列表
				key: '',
				gasBrandlist: [], //品牌list数据
				gasReasonlist: [], //更换原因list
				// 第一块数组
				list: [],
				signature: '',
				// 原气表参数
				gasmeter: {
					// 用户信息
					renewal: '',
					brand_original: '', //原气表品牌id
					brand_original_text: '', //原气表品牌
					gasometer_original: '',
					gasometer_original_number: '',
					gasometer_original_price: '',
					gasometer_original_direction: '',
					brand_new: '', //现气表品牌id
					brand_new_text: '', //现气表品牌
					gasometer_new: '',
					gasometer_new_number: '',
					gasometer_new_price: '',
					gasometer_new_direction: '',
					stuff: '',
					// 原气表照片
					gasometer_original_images: [],
					// 现气表照片
					gasometer_new_images: [],
					// 上传照片
					up_images: [],
					// 气密性是否合格
					gas_tightness: 0,
					gas_tightness_images: [], // 气密性是否合格图片
					// 电子签名
					// electron_name: '',
					sign: '',
					ID_num: '',
					archives_num: '', //档案号
				},
				// 现气表参数
				number: 0,
				index: 0,
				ret: '',
				mysearchIpt: false,
				searchIpt: '',
				searchIpts: '',
				flag: true,
				token: '',
				last_check: {},
				user_info: {},
				isNo: false, //是否合格
				read_only: false, //是否是详情，详情只能只读，添加能编写
				id:''
			}
		},
		onShow() {},
		onLoad(e) {
			if (e.id) {
				// if (e.status != '0') {
					
				// }
				this.id = e.id
				this.initData(e.id)
			}
			this.getGasList()
			
			
			wx.enableAlertBeforeUnload({
			    message: "是否返回上一页",
			});
		},
		methods: {
			goBack(){
				uni.navigateBack({
					delta: 1
				})
			},
			getGasList() {
				var _this = this
				uni.request({
					url: _this.$api + '/Gasbrand/getGasBrandlist',
					method: 'POST',
					header: _this._header,
					success: res => {
						if (res.data.code == 1) {
							_this.gasBrandlist = res.data.data
						}
					},
					fail: () => {},
					complete: () => {}
				});
				uni.request({
					url: _this.$api + '/Gasbrand/getGasReasonlist',
					method: 'POST',
					header: _this._header,
					success: res => {
						if (res.data.code == 1) {
							_this.gasReasonlist = res.data.data
						}
					},
					fail: () => {},
					complete: () => {}
				});
			},
			openSelect(list, key) {
				if (this.read_only) return;
				this.publicList = []
				this.publicList = this[list]
				this.show = true
				this.key = key
			},
			confirm(e) {
				console.log(e);
				if (this.key == 'brand') {
					this.gasmeter.brand_original_text = e[0].label
					this.gasmeter.brand_original = e[0].value
				}
				if (this.key == 'nowBrand') {
					this.gasmeter.brand_new_text = e[0].label
					this.gasmeter.brand_new = e[0].value
				}
				if (this.key == 'reason') {
					this.gasmeter.renewal = e[0].label
				}
			},
			initData(id) {
				var _this = this
				uni.request({
					url: _this.$url + 'gas.change_gas_record/details',
					method: 'GET',
					data: {
						id: id
					},
					success: (res) => {
						_this.list = res.data.data
						res.data.data.sign = res.data.data.sign_text.url
						res.data.data.gasometer_original_images = res.data.data.gasometer_original_images
							.split(',')
						res.data.data.gasometer_new_images = res.data.data.gasometer_new_images.split(',')
						// res.data.data.gas_tightness_images =res.data.data.gas_tightness_images.split(',')
						res.data.data.up_images = res.data.data.up_images.split(',')
						_this.gasmeter = res.data.data
						_this.signature ={
							intact_url:res.data.data.sign_text.url,
							url:res.data.data.sign_text.image,
						}
						if(res.data.data.status !=0){
							_this.read_only = true
						}
						if (res.data.data.gas_tightness == 1) {
							_this.isNo = true
						}
					}
				})
			},
			isChecked() {
				this.isNo = !this.isNo

				if (this.isNo) {
					this.gasmeter.gas_tightness = 1
				} else {
					this.gasmeter.gas_tightness = 0
				}
				console.log(this.gasmeter.gas_tightness);
			},
			choosefrom(imgs) {
				if (this.gasmeter[imgs].length < 3) {
					var _this = this
					uni.chooseImage({
						count: 1,
						sizeType: ['original', 'compressed'],
						success: (res) => {
							uni.uploadFile({
								url: _this.$fileImg + 'common/upload',
								filePath: res.tempFilePaths[0],
								name: 'file',
								header: {
									token: uni.getStorageSync('token')
								},
								success: (uploadFileRes) => {
									if (JSON.parse(uploadFileRes.data).code == 1) {
										_this.gasmeter[imgs].push(JSON.parse(uploadFileRes.data)
											.data.intact_url)
									}
								},
								fail: (err) => {
									console.log(err);
								}
							})
						}
					})
				} else {
					uni.showToast({
						icon: 'none',
						title: '上传已达到限制'
					})
				}
			},
			// 图片预览
			seeimg(imgs, index) {
				uni.previewImage({
					urls: imgs,
					current: index
				})
			},
			// 删除图片
			deletImg(imgs, index) {
				this.gasmeter[imgs].splice(index, 1)
			},
			PickerChange(e) {
				this.index = e.detail.value
			},
			toView(img) {
				uni.previewImage({
					urls: [img]
				})
			},
			del() {
				this.signature = ''
			},
			// 保存
			userPost() {
				let _this = this
				if (this.signature.url) {
					this.gasmeter.sign = this.signature.url
				}
				// if(!this.gasmeter.ID_num){
				// 	return this.$showToast('请输入身份证号')
				// }
				if (!this.gasmeter.archives_num) {
					return this.$showToast('请输入档案号')
				}
				_this.gasmeter.gasometer_original_images = _this.gasmeter.gasometer_original_images.toString()
				_this.gasmeter.gasometer_new_images = _this.gasmeter.gasometer_new_images.toString()
				// _this.gasmeter.gas_tightness_images = _this.gasmeter.gas_tightness_images.toString()
				_this.gasmeter.up_images = _this.gasmeter.up_images.toString()
				uni.request({
					url: this.$url + 'gas.change_gas_record/add',
					method: 'POST',
					header: {
						token: uni.getStorageSync('token')
					},
					data: _this.gasmeter,
					success: res => {
						_this.$showToast(res.data.msg)
						_this.gasmeter.gasometer_original_images = _this.gasmeter.gasometer_original_images
							.split(',')
						_this.gasmeter.gasometer_new_images = _this.gasmeter.gasometer_new_images.split(',')
						// _this.gasmeter.gas_tightness_images = _this.gasmeter.gas_tightness_images.split(',')
						_this.gasmeter.up_images = _this.gasmeter.up_images.split(',')
						if (res.data.code == 1) {
							setTimeout(() => {
								uni.navigateBack({
									delta: 1
								})
							}, 1000)

						}
					},
					fail: () => {},
					complete: () => {}
				});
			},
			// 搜索的编号
			searNum() {
				let that = this
				if (that.searchIpt == '') {
					uni.showToast({
						title: '请输入要搜索的编号',
						icon: 'none'
					})
					return
				}
				that.$request.request({
					url: '/staff/user_search',
					method: 'POST',
					data: {
						token: that.token,
						meter_num: that.searchIpt
					}
				}).then(res => {
					// console.log(res)
					if (res.data.code == 1) {
						that.user_info = res.data.data.user_info
						that.last_check = res.data.data.last_check
						/* 				
							that.img1=that.last_check
							that.img2=that.last_check
							that.img3=that.last_check
							that.img4=that.last_check */
						// that.brandName = res.data.data.user_info.brand_name
						// that.powerName = res.data.data.user_info.power_name
						that.flag = false;
						that.mysearchIpt = true;
					} else {
						uni.showToast({
							title: res.data.msg,
							icon: 'none'
						})
						that.flag = true
						that.searchIpt = ''
					}
				})
			},
			searChange(e) {
				// console.log(e.detail)
				if (e.detail.value == '') {
					this.flag = false
				}
			},
			clousText() {
				this.flag = true
				this.searchIpt = ''
			},
			// danger() {
			// 	if (this.img1 != '') {
			// 		uni.setStorage({
			// 			key: 'img1',
			// 			data: this.img1
			// 		})
			// 	}

			// 	if (this.img2.length > 0) {
			// 		uni.setStorage({
			// 			key: 'img2',
			// 			data: this.img2
			// 		})
			// 	}

			// 	if (this.img3.length > 0) {
			// 		uni.setStorage({
			// 			key: 'img3',
			// 			data: this.img3
			// 		})
			// 	}

			// 	if (this.img4 != '') {
			// 		uni.setStorage({
			// 			key: 'img4',
			// 			data: this.img4
			// 		})
			// 	}

			// 	if (this.autoText != '') {
			// 		uni.setStorage({
			// 			key: 'bztext',
			// 			data: this.autoText
			// 		})
			// 	}


			// 	uni.navigateTo({
			// 		url: '../securityCheck/dangerReport?id=' + this.last_check.member_id + '&type=' + '5' +
			// 			'&socont=' + this.searchIpt
			// 	})

			// },
		}
	}
</script>

<style lang="scss" scoped>
	.addform-items {
		display: flex;
		align-items: center;

		.form-img {
			width: 60rpx !important;
			height: 60rpx !important;
			margin-right: 20rpx;
		}

		.delet {
			position: absolute;
			top: -8rpx;
			right: 4rpx;
			width: 28rpx;
			height: 28rpx;
			z-index: 10;
		}

		.add {
			width: 60rpx;
			height: 60rpx;
			border: 1rpx solid #DDDDDD;
			display: flex;
			align-items: center;
			justify-content: center;
		}
	}

	.content {
		background: #F1F1F1;
		padding-bottom: 100rpx;

		.header {
			display: flex;
			justify-content: space-between;
			align-items: center;
			// padding: 30rpx 30rpx;
			background-color: #fff;

			.header-right {
				display: flex;
				align-items: center;
				font-size: 24rpx;
				color: #333;
				margin-right: 20rpx;

				image {
					width: 32rpx;
					height: 32rpx;
					margin-right: 10rpx;
				}
			}
		}

		// 搜索框
		.header1 {
			display: flex;
			justify-content: space-between;
			align-items: center;
			box-sizing: border-box;
			height: 80rpx;
			width: 100%;
			background-color: #003690;
			padding: 0 30rpx;

			.ipt-box {
				display: flex;
				justify-content: space-between;
				align-items: center;
				box-sizing: border-box;
				padding: 0 20rpx;
				width: 480rpx;
				height: 52rpx;
				background-color: #fff;
				border-radius: 24rpx;

				image {
					width: 32rpx;
					height: 32rpx;
				}
			}

			.header1-right {
				display: flex;
				align-items: center;
				font-size: 28rpx;
				color: #E2ECFB;

				image {
					width: 36rpx;
					height: 36rpx;
				}
			}
		}

		.newstyle {
			background: #003690;
			color: #FFFFFF;
		}

		// 气表模块
		.gasmeter {
			display: flex;
			align-items: center;
			// justify-content: space-between;
			// padding: 20rpx 30rpx;
			background: #FFFFFF;
			border-bottom: 1rpx solid #eee;

			.renewal {
				width: 33.3%;
				height: 80rpx;
				line-height: 80rpx;
				text-align: center;
			}
		}

		.searShow {
			width: 360rpx;
			height: 254rpx;
			position: fixed;
			top: 50%;
			left: 50%;
			transform: translate(-50%, -50%);

			image {
				width: 100%;
				height: 100%;
			}
		}

		.dataCont {
			padding-top: 12rpx;
			padding-left: 42rpx;
			padding-right: 30rpx;

			.searTitle {
				font-size: 32rpx;
				font-weight: 600;
				text-align: left;
				color: #333333;
			}

			.searResult {
				display: flex;
				justify-content: space-between;

				.resText {
					font-size: 32rpx;
					font-weight: 400;
					text-align: left;
					color: #777777;
				}

				image {
					width: 36rpx;
					height: 36rpx;
				}
			}
		}

		.ipts {
			background-color: #fff;
			margin-bottom: 20rpx;

			.liaison {
				display: flex;
				align-items: center;
				justify-content: space-between;
				padding: 10rpx 30rpx;

				.left {
					display: flex;
					align-items: center;

					.shuxian {
						width: 8rpx;
						height: 28rpx;
						background: #003690;
						opacity: 1;
						border-radius: 200rpx;
						margin-right: 10rpx;
					}

					.name {
						font-size: 28rpx;
						font-family: Source Han Sans SC;
						font-weight: 500;
						color: #333333;
						margin-right: 10rpx;
					}

					.time {
						font-size: 24rpx;
						font-family: Source Han Sans SC;
						font-weight: 400;
						color: #777777;
					}
				}

				.right {
					display: flex;
					align-items: center;

					image {
						width: 32rpx;
						height: 32rpx;
						margin-right: 10rpx;
					}

					.phone {
						font-size: 24rpx;
						font-family: Source Han Sans SC;
						font-weight: 400;
						color: #555555;
					}
				}
			}
		}

		.info-item {
			box-sizing: border-box;
			display: flex;
			align-items: center;
			justify-content: space-between;
			// height: 72rpx;
			width: 100%;
			padding: 0rpx 30rpx;
			height: 100rpx;
			align-items: center;
			background-color: #fff;
			font-size: 24rpx;
			color: #333;
			border-bottom: 1rpx solid #DDDDDD;

			image {
				width: 32rpx;
				height: 32rpx;
			}

			input {
				flex: 1;
				text-align: right;
			}

			.dot {
				width: 8rpx;
				height: 8rpx;
				background-color: #003690;
				border-radius: 50%;
				margin-right: 10rpx;
			}

			.danger-img {
				position: relative;
				display: flex;
				align-items: center;

				.updeletes {
					position: absolute;
					top: -20rpx;
					right: -20rpx;
					width: 40rpx;
					height: 40rpx;
					display: flex;
					align-items: center;
					justify-content: center;
					z-index: 88;

					image {
						width: 100%;
						height: 100%;
					}
				}
			}

			.danger-img-box {
				display: flex;

				.danger-img {
					width: 75rpx;
					height: 75rpx;
					// border: 2rpx dashed #eee;
					margin-right: 10rpx;

					image {
						width: 100%;
						height: 100%;
					}
				}
			}

			.danger-img-box2 {
				display: flex;
				align-items: center;

				.danger-img {
					width: 70rpx;
					height: 70rpx;

					// border: 2rpx dashed #eee;
					image {
						width: 70rpx;
						height: 70rpx;
						opacity: 1;
					}
				}
			}

			.info-item-left {
				display: flex;
				align-items: center;
				font-size: 28rpx;
			}
		}

		.place-class {
			font-size: 28rpx;
			color: #999;
		}

		.btn {
			width: 646rpx;
			height: 80rpx;
			margin: 74rpx auto;
			text-align: center;
			line-height: 80rpx;
			border-radius: 40rpx;
			background-image: linear-gradient(to bottom, #2366D5, #001B48);
			font-size: 32rpx;
			color: #E5EFFE;
		}

		.btns {
			position: fixed;
			bottom: 0;
			display: flex;
			width: 100%;
			z-index: 333;

			.btn1 {
				width: 50%;
				height: 96rpx;
				line-height: 96rpx;
				text-align: center;
				font-size: 24rpx;
			}

			.consel {
				background-color: #e9e9e9;
				color: #777;
			}

			.save {
				background-color: #003690;
				color: #fff;
			}
		}

		.btn:active {
			background: rgba(0, 0, 0, 0.4);
		}

		.zhanwei {
			height: 250rpx;
		}

		.record {
			display: flex;
			align-items: center;
			justify-content: space-between;
			color: #003690;
			font-size: 32rpx;
			padding-top: 20rpx;

			.right {
				width: 394rpx;
				height: 52rpx;
				background: #F2F2F2;
				opacity: 1;
				border-radius: 50rpx;
				padding: 0 10rpx 0 15rpx;
				display: flex;
				align-items: center;
				justify-content: space-between;
			}

			image {
				width: 32rpx;
				height: 32rpx;
				margin: 0 20rpx 0 30rpx;
			}

			span {
				font-weight: 700;
			}
		}

		.record-item {
			display: flex;
			justify-content: space-between;
			padding: 10rpx 30rpx;
			border-bottom: 2rpx solid #eee;

			.record-item-left {
				display: flex;
				align-items: center;

				.shu {
					width: 8rpx;
					height: 28rpx;
					background-color: #003690;
					border-radius: 8rpx;
				}

				.title {
					font-size: 32rpx;
					color: #333;
					font-weight: 500;
					margin: 0 10rpx;
				}

				.time {
					font-size: 24rpx;
					color: #777;
				}
			}

			.record-item-right {
				display: flex;
				align-items: center;

				.dianhua {
					width: 28rpx;
					height: 28rpx;
				}

				.zhankai {
					width: 36rpx;
					height: 36rpx;
				}

				.title {
					font-size: 32rpx;
					color: #555;
					font-weight: 500;
					margin: 0 10rpx;
				}
			}
		}

		.supplement {
			margin: 20rpx 24rpx;
			background-color: #fff;
			position: relative;
			overflow: hidden;

			.explain {
				.textArea {
					min-height: 142rpx;
					padding: 14rpx 30rpx;
					font-size: 32rpx;
					text-align: left;
					color: rgba(187, 187, 187, 0.84);
				}
			}

			.suppBottom {
				.danger-img {
					position: relative;
					margin-left: 50rpx;
					margin-bottom: 0rpx;
					width: 68rpx;
					height: 68rpx;
					float: left;

					image {
						width: 36rpx;
						height: 36rpx;
						position: absolute;
						left: 50%;
						top: 50%;
						transform: translate(-50%, -50%);
					}
				}

				.num {
					float: right;
					margin-right: 26rpx;
				}
			}
		}
	}
</style>
